package com.jeeplus.ht.common;

import net.sf.json.JSONObject;

public class PutMessge {
	
	public static void sendMessageTo(Object messge,String username){
		WebSocket ws = new WebSocket();
		JSONObject jo = new JSONObject();
		jo.put("message", messge);
		jo.put("To", username);// 给用户名为admin的用户推送
		ws.AppointSending(username.toString(),messge.toString());
	}

}
